﻿<phone:PhoneApplicationPage
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:phone="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone"
    xmlns:shell="clr-namespace:Microsoft.Phone.Shell;assembly=Microsoft.Phone"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    xmlns:controls="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone.Controls" 
    x:Class="PhoneInfo.Page.HotPhone"
    FontFamily="{StaticResource PhoneFontFamilyNormal}"
    FontSize="{StaticResource PhoneFontSizeNormal}"
    Foreground="{StaticResource PhoneForegroundBrush}"
    SupportedOrientations="Portrait" Orientation="Portrait"
    mc:Ignorable="d" d:DesignHeight="800" d:DesignWidth="480"
    shell:SystemTray.IsVisible="False"
    xmlns:toolkit="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone.Controls.Toolkit"
    xmlns:delay="clr-namespace:Delay;assembly=PhonePerformance"
    xmlns:local="clr-namespace:PhoneInfo" Style="{StaticResource TransitionPageStyle}"
    Loaded="PhoneApplicationPage_Loaded" toolkit:TiltEffect.IsTiltEnabled="True" 
    >
    <phone:PhoneApplicationPage.Resources>
        <local:FixEmptyUrl x:Key="FixUrl"/>
        <Style x:Key="ButtonStyle1" TargetType="Button">
            <Setter Property="Background" Value="Transparent"/>
            <Setter Property="BorderBrush" Value="{StaticResource PhoneForegroundBrush}"/>
            <Setter Property="Foreground" Value="{StaticResource PhoneForegroundBrush}"/>
            <Setter Property="BorderThickness" Value="{StaticResource PhoneBorderThickness}"/>
            <Setter Property="FontFamily" Value="{StaticResource PhoneFontFamilySemiBold}"/>
            <Setter Property="FontSize" Value="{StaticResource PhoneFontSizeMediumLarge}"/>
            <Setter Property="Padding" Value="10,3,10,5"/>
            <Setter Property="Template">
                <Setter.Value>
                    <ControlTemplate TargetType="Button">
                        <Grid Background="Transparent">
                            <VisualStateManager.VisualStateGroups>
                                <VisualStateGroup x:Name="CommonStates">
                                    <VisualStateGroup.Transitions>
                                        <VisualTransition GeneratedDuration="0" To="Pressed"/>
                                    </VisualStateGroup.Transitions>
                                    <VisualState x:Name="Normal"/>
                                    <VisualState x:Name="MouseOver"/>
                                    <VisualState x:Name="Pressed">
                                        <Storyboard>
                                            <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="Foreground" Storyboard.TargetName="ContentContainer">
                                                <DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource PhoneBackgroundBrush}"/>
                                            </ObjectAnimationUsingKeyFrames>
                                            <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="Background" Storyboard.TargetName="ButtonBackground">
                                                <DiscreteObjectKeyFrame KeyTime="0" Value="Transparent"/>
                                            </ObjectAnimationUsingKeyFrames>
                                            <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="BorderBrush" Storyboard.TargetName="ButtonBackground">
                                                <DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource PhoneForegroundBrush}"/>
                                            </ObjectAnimationUsingKeyFrames>
                                        </Storyboard>
                                    </VisualState>
                                    <VisualState x:Name="Disabled">
                                        <Storyboard>
                                            <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="Foreground" Storyboard.TargetName="ContentContainer">
                                                <DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource PhoneDisabledBrush}"/>
                                            </ObjectAnimationUsingKeyFrames>
                                            <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="BorderBrush" Storyboard.TargetName="ButtonBackground">
                                                <DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource PhoneDisabledBrush}"/>
                                            </ObjectAnimationUsingKeyFrames>
                                            <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="Background" Storyboard.TargetName="ButtonBackground">
                                                <DiscreteObjectKeyFrame KeyTime="0" Value="Transparent"/>
                                            </ObjectAnimationUsingKeyFrames>
                                        </Storyboard>
                                    </VisualState>
                                </VisualStateGroup>
                            </VisualStateManager.VisualStateGroups>
                            <Border x:Name="ButtonBackground" BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}" Background="{TemplateBinding Background}" CornerRadius="0" Margin="{StaticResource PhoneTouchTargetOverhang}">
                                <ContentControl x:Name="ContentContainer" ContentTemplate="{TemplateBinding ContentTemplate}" Content="{TemplateBinding Content}" Foreground="{TemplateBinding Foreground}" HorizontalContentAlignment="{TemplateBinding HorizontalContentAlignment}" Padding="{TemplateBinding Padding}" VerticalContentAlignment="{TemplateBinding VerticalContentAlignment}"/>
                            </Border>
                        </Grid>
                    </ControlTemplate>
                </Setter.Value>
            </Setter>
        </Style>

    </phone:PhoneApplicationPage.Resources>
    <!--LayoutRoot 是包含所有页面内容的根网格-->
    <Grid x:Name="LayoutRoot" Background="{Binding Source={StaticResource Theme}, Path=cuTheme.TextBrush}" Margin="0,0,0,0" Height="800">
        <toolkit:PerformanceProgressBar   Foreground="Orange" x:Name="ProgBar" Visibility="Visible"  IsIndeterminate="True" Height="10" HorizontalAlignment="Left" VerticalAlignment="Top" Margin="0" Grid.ColumnSpan="2"  Width="480" />
        <StackPanel HorizontalAlignment="Left" VerticalAlignment="Top" Width="480">
            <controls:Pivot x:Name="mainPivot"  SelectionChanged="Pivot_SelectionChanged" Height="750" >
                <controls:PivotItem  x:Name="New" Margin="12,0">
                    <controls:PivotItem.Header>
                        <TextBlock Text="最新"  Foreground="{Binding Source={StaticResource Theme}, Path=cuTheme.TitleBrush}"  FontSize="50" />
                    </controls:PivotItem.Header>
                    <Grid>
                        <TextBlock  x:Name="NewResult" TextWrapping="Wrap"  Text="没找到你需要的信息" Margin="100" 
                                    HorizontalAlignment="Center" VerticalAlignment="Center" Visibility="Collapsed"
                                    Foreground="{Binding cuTheme.SecondTextBrush, Source={StaticResource Theme}}"/>
                        <ListBox ItemsSource="{Binding SearchResultItems}" Tap="ListBox_Tap" Loaded="ListBox_Loaded">
                            <ListBox.ItemsPanel>
                                <ItemsPanelTemplate>
                                    <StackPanel></StackPanel>
                                </ItemsPanelTemplate>
                            </ListBox.ItemsPanel>
                            <ListBox.ItemTemplate>
                                <DataTemplate>
                                    <delay:FoodTemplateSelector x:Name="foodTemplateSelector" Content="{Binding}" RenderTransformOrigin="0.5,0.5">
                                        <delay:FoodTemplateSelector.RenderTransform>
                                            <CompositeTransform/>
                                        </delay:FoodTemplateSelector.RenderTransform>
                                        <delay:FoodTemplateSelector.Main>
                                            <DataTemplate >
                                                <StackPanel Orientation="Horizontal">
                                                    <Grid Width="80" Height="90" Margin="10,0,10,10">
                                                        <Image   Stretch="Uniform"
                                                                delay:LowProfileImageLoader.UriSource="{Binding Ponhe1_picurl, Converter={StaticResource FixUrl}}"  
                                                                VerticalAlignment="Center" HorizontalAlignment="Center"/>
                                                    </Grid>
                                                    <StackPanel Orientation="Vertical" Margin="10" >
                                                        <StackPanel Orientation="Horizontal">
                                                            <TextBlock Text="{Binding Ponhe1_ppname}"  FontSize="26" VerticalAlignment="Center"
                                                                   Foreground="{Binding Source={StaticResource Theme}, Path=cuTheme.SecondTextBrush}" 
                                                                    />
                                                            <TextBlock Text="{Binding Ponhe1_phonename}" Margin="0,0,0,0" VerticalAlignment="Center" 
                                                                       FontSize="20" Foreground="#FF626262"/>
                                                        </StackPanel>
                                                        <StackPanel Orientation="Horizontal">
                                                            <TextBlock Text="时间:" Margin="5,0,0,0" FontSize="20" Foreground="#5c83a8"/>
                                                            <TextBlock Text="{Binding Ponhe1_addtime}" FontSize="20" Foreground="#5c83a8"/>
                                                            <!--<TextBlock Text="价格:" Margin="10,0,0,0" FontSize="20" Foreground="#FF626262"/>
                                                            <TextBlock Text="{Binding Ponhe1_price}" Margin="5,0,0,0" FontSize="20" Foreground="#FF626262"/>-->
                                                        </StackPanel>
                                                    </StackPanel>
                                                </StackPanel>
                                            </DataTemplate>
                                        </delay:FoodTemplateSelector.Main>
                                        <delay:FoodTemplateSelector.Tail>
                                            <DataTemplate >
                                                <StackPanel Orientation="Horizontal">
                                                    <TextBlock Text="{Binding Ponhe1_phonename}" Margin="10,5,0,0" Height="50" FontSize="24"
                                                                Foreground="{Binding cuTheme.lexunTBForgetBrush, Source={StaticResource Theme}}"/>
                                                </StackPanel>
                                            </DataTemplate>
                                        </delay:FoodTemplateSelector.Tail>
                                    </delay:FoodTemplateSelector>
                                </DataTemplate>
                            </ListBox.ItemTemplate>
                        </ListBox>
                    </Grid>
                </controls:PivotItem>
                <controls:PivotItem x:Name="Hot" Margin="12,0">
                    <controls:PivotItem.Header>
                        <TextBlock Text="最热"  Foreground="{Binding Source={StaticResource Theme}, Path=cuTheme.TitleBrush}"  FontSize="50" />
                    </controls:PivotItem.Header>
                    <Grid>

                        <TextBlock TextWrapping="Wrap"  x:Name="HotResult" Visibility="Collapsed" Text="没找到你需要的信息" Margin="100"
                                       HorizontalAlignment="Center" VerticalAlignment="Center"
                                       Foreground="{Binding cuTheme.SecondTextBrush, Source={StaticResource Theme}}"/>

                        <ListBox ItemsSource="{Binding SearchResultItems}" Tap="ListBox_Tap" Loaded="ListBox_Loaded">
                            <ListBox.ItemsPanel>
                                <ItemsPanelTemplate>
                                    <StackPanel></StackPanel>
                                </ItemsPanelTemplate>
                            </ListBox.ItemsPanel>
                            <ListBox.ItemTemplate>
                                <DataTemplate>
                                    <delay:FoodTemplateSelector x:Name="foodTemplateSelector" Content="{Binding}" RenderTransformOrigin="0.5,0.5">
                                        <delay:FoodTemplateSelector.RenderTransform>
                                            <CompositeTransform/>
                                        </delay:FoodTemplateSelector.RenderTransform>
                                        <delay:FoodTemplateSelector.Main>
                                            <DataTemplate >
                                                <StackPanel Orientation="Horizontal">
                                                    <Grid Width="80" Height="90"  Margin="10">
                                                        <Image   Stretch="Uniform"
                                                                delay:LowProfileImageLoader.UriSource="{Binding Ponhe1_picurl, Converter={StaticResource FixUrl}}"  
                                                                VerticalAlignment="Center"   HorizontalAlignment="Center"/>
                                                    </Grid>
                                                    <StackPanel Orientation="Vertical" Width="309" Margin="10,20,10,10" >
                                                        <StackPanel Orientation="Horizontal">
                                                            <TextBlock Text="{Binding Ponhe1_ppname}"  FontSize="26"
                                                                   Foreground="{Binding Source={StaticResource Theme}, Path=cuTheme.SecondTextBrush}" 
                                                                    />
                                                            <TextBlock Text="{Binding Ponhe1_phonename}" Margin="0" FontSize="20" VerticalAlignment="Center" Foreground="#626262"/>

                                                        </StackPanel>
                                                        <StackPanel Orientation="Horizontal">
                                                            <TextBlock Text="(" FontSize="20"
                                                                   Margin="5,0,0,0" Foreground="#b94901"/>
                                                            <TextBlock Text="{Binding Ponhe1_score}" FontSize="20"
                                                                   Foreground="#b94901"/>
                                                            <TextBlock Text="星)" FontSize="20" Foreground="#b94901"/>
                                                            <TextBlock Text="价格：" FontSize="20"
                                                                   Margin="5,0,0,0" Foreground="#5c83a8"/>
                                                            <TextBlock Text="{Binding Ponhe1_price}" FontSize="20"
                                                                   Foreground="#5c83a8"/>

                                                        </StackPanel>
                                                    </StackPanel>
                                                </StackPanel>
                                            </DataTemplate>
                                        </delay:FoodTemplateSelector.Main>
                                        <delay:FoodTemplateSelector.Tail>
                                            <DataTemplate >
                                                <StackPanel Orientation="Horizontal">
                                                    <TextBlock Text="{Binding Ponhe1_phonename}" Margin="10,5,0,0" Height="50" FontSize="24"
                                                                Foreground="{Binding cuTheme.lexunTBForgetBrush, Source={StaticResource Theme}}"/>
                                                </StackPanel>
                                            </DataTemplate>
                                        </delay:FoodTemplateSelector.Tail>
                                    </delay:FoodTemplateSelector>
                                </DataTemplate>
                            </ListBox.ItemTemplate>
                        </ListBox>
                    </Grid>
                </controls:PivotItem>
                <controls:PivotItem  x:Name="Cheap" Margin="12,0" >
                    <controls:PivotItem.Header>
                        <TextBlock Text="最便宜"   Foreground="{Binding Source={StaticResource Theme}, Path=cuTheme.TitleBrush}"  FontSize="50" />
                    </controls:PivotItem.Header>
                    <Grid>
                        <TextBlock TextWrapping="Wrap"  x:Name="CheapResult" 
                                  Foreground="{Binding Source={StaticResource Theme}, Path=cuTheme.SecondTextBrush}"
                                  Text="没找到你需要的信息" Margin="100" Visibility="Collapsed"
                                  HorizontalAlignment="Center" VerticalAlignment="Center"/>
                        <ListBox ItemsSource="{Binding SearchResultItems}" Tap="ListBox_Tap" Loaded="ListBox_Loaded">
                            <ListBox.ItemsPanel>
                                <ItemsPanelTemplate>
                                    <StackPanel></StackPanel>
                                </ItemsPanelTemplate>
                            </ListBox.ItemsPanel>
                            <ListBox.ItemTemplate>
                                <DataTemplate>
                                    <delay:FoodTemplateSelector x:Name="foodTemplateSelector" Content="{Binding}" RenderTransformOrigin="0.5,0.5">
                                        <delay:FoodTemplateSelector.RenderTransform>
                                            <CompositeTransform/>
                                        </delay:FoodTemplateSelector.RenderTransform>
                                        <delay:FoodTemplateSelector.Main>
                                            <DataTemplate >
                                                <StackPanel Orientation="Horizontal">
                                                    <Grid Width="80" Height="90" Margin="10">
                                                        <Image     Stretch="Uniform"
                                                                delay:LowProfileImageLoader.UriSource="{Binding Ponhe1_picurl, Converter={StaticResource FixUrl}}"  
                                                                VerticalAlignment="Center" HorizontalAlignment="Center"/>
                                                    </Grid>
                                                    <StackPanel Orientation="Vertical" Width="309" Margin="10,20,10,10" >
                                                        <StackPanel Orientation="Horizontal">
                                                            <TextBlock Text="{Binding Ponhe1_ppname}" FontSize="26"
                                                                   Foreground="{Binding Source={StaticResource Theme}, Path=cuTheme.SecondTextBrush}" />
                                                            <TextBlock Text="{Binding Ponhe1_phonename}" FontSize="20"
                                                                   Margin="0,10,0,0" Foreground="#626262"/>
                                                        </StackPanel>
                                                        <StackPanel Orientation="Horizontal">
                                                            <TextBlock Text="(" FontSize="20"
                                                                   Margin="5,0,0,0" Foreground="#b94901"/>
                                                            <TextBlock Text="{Binding Ponhe1_score}" FontSize="20"
                                                                   Foreground="#b94901"/>
                                                            <TextBlock Text="星)" FontSize="20" Foreground="#b94901"/>
                                                            <TextBlock Text="价格：" FontSize="20"
                                                                   Margin="5,0,0,0" Foreground="#5c83a8"/>
                                                            <TextBlock Text="{Binding Ponhe1_price}" FontSize="20"
                                                                   Foreground="#5c83a8"/>

                                                        </StackPanel>
                                                    </StackPanel>
                                                </StackPanel>
                                            </DataTemplate>
                                        </delay:FoodTemplateSelector.Main>
                                        <delay:FoodTemplateSelector.Tail>
                                            <DataTemplate >
                                                <StackPanel Orientation="Horizontal">
                                                    <TextBlock Text="{Binding Ponhe1_phonename}" Margin="10,5,0,0" Height="50" FontSize="24"
                                                                Foreground="{Binding cuTheme.lexunTBForgetBrush, Source={StaticResource Theme}}"/>
                                                </StackPanel>
                                            </DataTemplate>
                                        </delay:FoodTemplateSelector.Tail>
                                    </delay:FoodTemplateSelector>
                                </DataTemplate>
                            </ListBox.ItemTemplate>
                        </ListBox>
                    </Grid>
                </controls:PivotItem>
                <controls:PivotItem  x:Name="Dear" Margin="12,0"  >
                    <controls:PivotItem.Header>
                        <TextBlock Text="最贵"  Foreground="{Binding Source={StaticResource Theme}, Path=cuTheme.TitleBrush}"  FontSize="50" />
                    </controls:PivotItem.Header>
                    <Grid>
                        <TextBlock  x:Name="DearResult" Visibility="Collapsed"  TextWrapping="Wrap" 
                                   Foreground="{Binding Source={StaticResource Theme}, Path=cuTheme.SecondTextBrush}"
							       Text="没找到你需要的信息" Margin="100" HorizontalAlignment="Center" VerticalAlignment="Center"/>
                        <ListBox ItemsSource="{Binding SearchResultItems}" Tap="ListBox_Tap" Loaded="ListBox_Loaded">
                            <ListBox.ItemsPanel>
                                <ItemsPanelTemplate>
                                    <StackPanel></StackPanel>
                                </ItemsPanelTemplate>
                            </ListBox.ItemsPanel>
                            <ListBox.ItemTemplate>
                                <DataTemplate>
                                    <delay:FoodTemplateSelector x:Name="foodTemplateSelector" Content="{Binding}" RenderTransformOrigin="0.5,0.5">
                                        <delay:FoodTemplateSelector.RenderTransform>
                                            <CompositeTransform/>
                                        </delay:FoodTemplateSelector.RenderTransform>
                                        <delay:FoodTemplateSelector.Main>
                                            <DataTemplate >
                                                <StackPanel Orientation="Horizontal">
                                                    <Grid Width="80" Height="90" Margin="10">
                                                        <Image   Stretch="Uniform"
                                                                delay:LowProfileImageLoader.UriSource="{Binding Ponhe1_picurl, Converter={StaticResource FixUrl}}"  
                                                                VerticalAlignment="Center" HorizontalAlignment="Center"/>
                                                    </Grid>
                                                    <StackPanel Orientation="Vertical" Width="309" Margin="10,20,10,10" >
                                                        <StackPanel Orientation="Horizontal">
                                                            <TextBlock Text="{Binding Ponhe1_ppname}" FontSize="26"
                                                                   Foreground="{Binding Source={StaticResource Theme}, Path=cuTheme.SecondTextBrush}" />
                                                            <TextBlock Text="{Binding Ponhe1_phonename}" FontSize="20"
                                                                   Margin="0,10,0,0" Foreground="#626262"/>
                                                        </StackPanel>
                                                        <StackPanel Orientation="Horizontal">
                                                            <TextBlock Text="(" FontSize="20"
                                                                   Margin="5,0,0,0" Foreground="#b94901"/>
                                                            <TextBlock Text="{Binding Ponhe1_score}" FontSize="20"
                                                                   Foreground="#b94901"/>
                                                            <TextBlock Text="星)" FontSize="20" Foreground="#b94901"/>
                                                            <TextBlock Text="价格：" FontSize="20"
                                                                   Margin="5,0,0,0" Foreground="#5c83a8"/>
                                                            <TextBlock Text="{Binding Ponhe1_price}" FontSize="20"
                                                                   Foreground="#5c83a8"/>

                                                        </StackPanel>
                                                    </StackPanel>
                                                </StackPanel>
                                            </DataTemplate>
                                        </delay:FoodTemplateSelector.Main>
                                        <delay:FoodTemplateSelector.Tail>
                                            <DataTemplate >
                                                <StackPanel Orientation="Horizontal">
                                                    <TextBlock Text="{Binding Ponhe1_phonename}" Margin="10,5,0,0" Height="50" FontSize="24"
                                                                Foreground="{Binding cuTheme.lexunTBForgetBrush, Source={StaticResource Theme}}"/>
                                                </StackPanel>
                                            </DataTemplate>
                                        </delay:FoodTemplateSelector.Tail>
                                    </delay:FoodTemplateSelector>
                                </DataTemplate>
                            </ListBox.ItemTemplate>
                        </ListBox>
                    </Grid>
                </controls:PivotItem>
                <controls:PivotItem  x:Name="Score" Margin="12,0" >
                    <controls:PivotItem.Header>
                        <TextBlock Text="最高分"   Foreground="{Binding Source={StaticResource Theme}, Path=cuTheme.TitleBrush}"  FontSize="50" />
                    </controls:PivotItem.Header>
                    <Grid>
                        <TextBlock x:Name="ScoreResult" TextWrapping="Wrap" Text="没找到你需要的信息" Margin="100" 
                                       HorizontalAlignment="Center" VerticalAlignment="Center" Visibility="Collapsed"
                                       Foreground="{Binding Source={StaticResource Theme}, Path=cuTheme.SecondTextBrush}"/>
                        <ListBox ItemsSource="{Binding SearchResultItems}" Tap="ListBox_Tap" Loaded="ListBox_Loaded">
                            <ListBox.ItemsPanel>
                                <ItemsPanelTemplate>
                                    <StackPanel></StackPanel>
                                </ItemsPanelTemplate>
                            </ListBox.ItemsPanel>
                            <ListBox.ItemTemplate>
                                <DataTemplate>
                                    <delay:FoodTemplateSelector x:Name="foodTemplateSelector" Content="{Binding}" RenderTransformOrigin="0.5,0.5">
                                        <delay:FoodTemplateSelector.RenderTransform>
                                            <CompositeTransform/>
                                        </delay:FoodTemplateSelector.RenderTransform>
                                        <delay:FoodTemplateSelector.Main>
                                            <DataTemplate >
                                                <StackPanel Orientation="Horizontal">
                                                    <Grid Width="80" Height="90" Margin="10">
                                                        <Image    Stretch="Uniform"
                                                                delay:LowProfileImageLoader.UriSource="{Binding Ponhe1_picurl, Converter={StaticResource FixUrl}}"  
                                                                VerticalAlignment="Center" HorizontalAlignment="Center"/>
                                                    </Grid>
                                                    <StackPanel Orientation="Vertical" Width="309" Margin="10,20,10,10" >
                                                        <StackPanel Orientation="Horizontal">
                                                            <TextBlock Text="{Binding Ponhe1_ppname}" FontSize="26"
                                                                   Foreground="{Binding Source={StaticResource Theme}, Path=cuTheme.SecondTextBrush}" />
                                                            <TextBlock Text="{Binding Ponhe1_phonename}" FontSize="20"
                                                                   Margin="0,10,0,0" Foreground="#626262"/>
                                                        </StackPanel>
                                                        <StackPanel Orientation="Horizontal">

                                                            <TextBlock Text="(" FontSize="20"
                                                                   Margin="5,0,0,0" Foreground="#b94901"/>
                                                            <TextBlock Text="{Binding Ponhe1_score}" FontSize="20"
                                                                   Foreground="#b94901"/>
                                                            <TextBlock Text="星)" FontSize="20" Foreground="#b94901"/>
                                                            <TextBlock Text="价格：" FontSize="20"
                                                                   Margin="5,0,0,0" Foreground="#5c83a8"/>
                                                            <TextBlock Text="{Binding Ponhe1_price}" FontSize="20"
                                                                   Foreground="#5c83a8"/>


                                                        </StackPanel>
                                                    </StackPanel>
                                                </StackPanel>
                                            </DataTemplate>
                                        </delay:FoodTemplateSelector.Main>
                                        <delay:FoodTemplateSelector.Tail>
                                            <DataTemplate >
                                                <StackPanel Orientation="Horizontal">
                                                    <TextBlock Text="{Binding Ponhe1_phonename}" Margin="10,5,0,0" Height="50" FontSize="24"
                                                                Foreground="{Binding cuTheme.lexunTBForgetBrush, Source={StaticResource Theme}}"/>
                                                </StackPanel>
                                            </DataTemplate>
                                        </delay:FoodTemplateSelector.Tail>
                                    </delay:FoodTemplateSelector>
                                </DataTemplate>
                            </ListBox.ItemTemplate>
                        </ListBox>
                    </Grid>
                </controls:PivotItem>
            </controls:Pivot>
        </StackPanel>
        <Popup x:Name="KeySortPop" Opened="KeySortPop_Opened">
            <StackPanel Height="800" Width="480" >
                <Grid Height="550">
                    <Button  HorizontalAlignment="Left" VerticalAlignment="Top" Width="480" Height="550" BorderThickness="0" Style="{StaticResource ButtonStyle1}" Click="Button_Click"/>
                </Grid>
                <Grid Height="250" Width="480" Background="#ff31b2e7" HorizontalAlignment="Left" VerticalAlignment="Top" Margin="0">
                    <ListBox  x:Name="MoreListBox" Margin="20"    Tap="Expander_List_Tap" ItemsSource="{Binding}" >

                        <ListBox.ItemsPanel>
                            <ItemsPanelTemplate>
                                <toolkit:WrapPanel Orientation="Horizontal"  VerticalAlignment="Top" Margin="0"/>
                            </ItemsPanelTemplate>
                        </ListBox.ItemsPanel>
                        <ListBox.ItemTemplate>
                            <DataTemplate>
                                <TextBlock Text="{Binding}" FontSize="30" Height="35" Width="35" Margin="10" />
                            </DataTemplate>
                        </ListBox.ItemTemplate>
                    </ListBox>
                </Grid>
            </StackPanel>
        </Popup>
    </Grid>
    <!--演示 ApplicationBar 用法的示例代码-->

</phone:PhoneApplicationPage>
